package com.fastCms.manager.bim.controller.api;

import com.fastCms.business.bim.manage.AreaManageService;
import com.fastCms.business.bim.pojo.vo.AreaVO;
import com.fastCms.business.frame.response.ApiResponse;
import com.fastCms.manager.frame.annotation.UserAccess;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: RogersZheng
 * @Date: 2021/6/28 11:52 上午
 * @Description: com.fastCms.customer.work.controller.api
 */
@RestController
@RequestMapping("api/area")
@Api(value = "ApiAreaController", tags = "前端-区域查询接口")
@UserAccess
public class ApiAreaController {

    @Autowired
    private AreaManageService areaManageServiceImpl;

    @ApiOperation(value = "", notes = "")
    @GetMapping("/areaList")
    public ApiResponse<List<AreaVO>> areaList() {
        ApiResponse<List<AreaVO>> detail = areaManageServiceImpl.apiAreaList();
        return detail;
    }

}
